import request from '@/utils/request'
// 获取员工列表
export const getEmployeesListApi = (page, size) => {
  return request({
    url: '/sys/user',
    params: {
      page,
      size
    }
  })
}
// 删除员工
export const delEmployeesListApi = id => {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}

// 添加员工
export const addEmployeeApi = data => {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}
/**
 * 批量新增接口
 * @param {*} arr 接口所需参数
 * @returns
 */
export const batchAddEmployeeApi = arr => {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data: arr
  })
}
